﻿@model Barry.BarbeSystem.Models.Member
@{
    ViewBag.Title = "会员充值";
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>充值</legend>
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.CardId)
        @Html.HiddenFor(model => model.Enable)
        
        @Html.HiddenFor(model=>model.Name)
          @Html.HiddenFor(model=>model.PhoneNumber)  @Html.HiddenFor(model => model.Balance)
        <div class="editor-label">
            @Html.LabelFor(model => model.CardId)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.CardId)
            @Html.ValidationMessageFor(model => model.CardId)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PhoneNumber)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>
       
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Balance)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Balance)
            @Html.ValidationMessageFor(model => model.Balance)
        </div>
        
         <div class="editor-label">
            @Html.LabelFor(model => model.Discount)
        </div>
        <div class="editor-field">
            @Html.DropDownList("discount");
            @Html.ValidationMessageFor(model => model.Discount)
        </div>
        
        <div class="editor-label">
             @Html.LabelFor(model => model.RechargeNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RechargeNumber)
            @Html.ValidationMessageFor(model => model.RechargeNumber)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Remarks)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Remarks)
            @Html.ValidationMessageFor(model => model.Remarks)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("返回", "Index")
</div>
